import yaml


def read_yaml(file_path):
    f = open(file_path, 'r', encoding='utf-8')
    data = yaml.load(f.read(), Loader=yaml.FullLoader)
    f.close()
    case_title = []  # 存储 用例标题
    case_data = []  # 存储 用例的数据
    for nextdata in data:
        case_title.append(nextdata)
        case_data.append(data[nextdata])
    return (case_title, case_data)

